//
//  Constant.h
//  gong
//
//  Created by echo on 14-1-11.
//  Copyright (c) 2014年 echo. All rights reserved.
//

//滑动方向
typedef enum
{
    SwipeLeft = 0,
    SwipeRight
} SwipeDirection;

typedef enum
{
    CurrentAvatarTag = 1000,
    AwardTag
} ViewTag;

#define PageTransitionTime 0.5f

#define NpcShowInStreetTime 30 //在大街上随机显示NPC的存在时间，单位秒

#define MemoryCount 3

#define SharedInstanceBuilder(ClassName) \
+ (ClassName*)sharedInstance\
{\
static dispatch_once_t onceToken;\
static ClassName* instance;\
dispatch_once(&onceToken, ^{\
instance = [[ClassName alloc] init];\
});\
return instance;\
}

#define MemorySuffix @"memory"

#define MsgShowNPC @"ShowNPC"
#define MsgNPCTalk @"NPCTalk"
#define MsgEnterPlace @"EnterPlace"
#define MsgLeavePlace @"LeavePlace"
#define MsgTaskIsDone @"TaskIsDone"
#define MsgClearTalk @"ClearTalk"
#define MsgStreetNpcLeave @"StreetNpcLeave"
#define MsgVisitNpcHouse @"VisitNpcHouse"
#define MsgRestartGame @"RestartGame"
#define MsgEnterMemoryHouse @"EnterMemoryHouse"

#define TaskNameKey @"TaskName"
#define SwipeDirectionKey @"SwipeDirectionKey"
#define DidPageSwiped @"DidPageSwiped"
#define TaskIndexKey @"TaskIndex"

